package com.ss.android.newmedia.d;

import android.content.Context;

import com.bytedance.article.common.c.TTUtils;
import com.bytedance.frameworks.baselib.network.http.util.TaskInfo;
import com.bytedance.frameworks.baselib.network.http.util.d;
import com.ss.android.b.g;
import com.ss.android.newmedia.BaseAppData;
import com.ss.android.newmedia.a.AdsAppBaseActivity;
import com.ss.android.newmedia.util.AppUtil;

import java.util.List;
import org.json.JSONObject;

public final class c implements g {
    private static c a;

    static {
        c.a = new c();
    }

    public c() {

    }

    public static void a() {
        com.ss.android.b.bb.a().a = c.a;
    }

    public final int a(Context arg2, Throwable arg3) {
        return TTUtils.getErrorCode(arg2, arg3);
    }

    public final long a(String arg3, String arg4, Context arg5, boolean arg6, boolean arg7, boolean arg8, boolean arg9, JSONObject arg10) {
        return a.a(arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
    }

    public final String a(String arg2) {
        return AdsAppBaseActivity.b(arg2);
    }

    public final void a(long arg2) {
        BaseAppData.inst().bX = arg2;
    }

    public final void a(List arg1, Context arg2) {
        AppUtil.a(arg1, arg2);
    }

    public final boolean a(int arg2) {
        return a.a(arg2);
    }

    public final boolean a(Context arg2, int arg3, String arg4, String arg5, String arg6, String arg7, String arg8, d arg9, TaskInfo arg10) throws Throwable {
        return a.a(arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
    }

    public final boolean a(Context arg2, int arg3, String arg4, List arg5, String arg6, String arg7, String arg8, d arg9, TaskInfo arg10) throws Throwable {
        return a.a(arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
    }

    public final boolean a(Context arg2, String arg3, String arg4) {
        return a.b(arg2, arg3, arg4);
    }

    public final long b() {
        return BaseAppData.inst().bX;
    }

    public final boolean b(Context arg2, String arg3, String arg4) {
        return AppUtil.c(arg2, arg3, arg4);
    }

    public final boolean b(String arg2) {
        return TTUtils.isValidUrl(arg2);
    }

    public final long c() {
        return BaseAppData.inst().cJ;
    }

    public final String d() {
        BaseAppData v0 = BaseAppData.inst();
        v0.bV = v0.mContext.getSharedPreferences("app_setting", 0).getString("last_show_guide_app", "");
        return v0.bV;
    }

    public final Long e() {
        BaseAppData v0 = BaseAppData.inst();
        v0.bW = v0.mContext.getSharedPreferences("app_setting", 0).getLong("last_show_guide_app_time", 0);
        return Long.valueOf(v0.bW);
    }
}

